package com.mail.server.controller;


import com.mail.model.db.CmsPrefrenceArea;
import com.mail.server.common.R;
import com.mail.server.service.CmsPrefrenceAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 优选专区 前端控制器
 * </p>
 *
 * @author WJZ
 * @since 2022-06-20
 */
@RestController
@RequestMapping("/prefrenceArea")
public class CmsPrefrenceAreaController {
    @Autowired
    private CmsPrefrenceAreaService cmsPrefrenceAreaService;

    @GetMapping("/listAll")
    public R listAll() {
        List<CmsPrefrenceArea> list = cmsPrefrenceAreaService.listAll();
        return R.success(list);
    }
}
